<?php //print_r($this->user) ;?>
<div class="grid_7 group_r">

<div class="inner">

<form class="form-contactme" name="user" id="user"
	action="/adminarea/edituser/id/<?php echo $this->aUser->id; ?>"
	method="post">

<div class="clearit"><label for="first_name">First Name</label> 
	<input	class="text" type="text" name="first_name" id="first_name"
	maxlength="255" 	value="<?php echo $this->escape($this->aUser->first_name); ?>"
	tabindex="1" />
</div>
	
<div class="clearit"><label for="last_name">Last Name</label> 
	<input	class="text" type="text" name="last_name" id="last_name"
	maxlength="255" 	value="<?php echo $this->escape($this->aUser->last_name); ?>"
	tabindex="2" />
</div>

<div>
	<label for="address">Street address</label>
	<input type="text" name="address" value="<?php echo $this->escape($this->aUser->address); ?>" class="text"	tabindex="3" />
</div>
	
<div>
	<label for="apt">Apt/Unit/Suite number</label>
	<input type="text" name="apt" value="<?php echo $this->escape($this->aUser->apt); ?>" class="text"	tabindex="4" />
</div>
	
<div>
	<label for="city">City</label>
	<input type="text" name="city" value="<?php echo $this->escape($this->aUser->city); ?>" class="text" tabindex="5" />
</div>
	
<div>
	<label for="state">State</label>
	<select name="state" tabindex="6" class="text" > 
		<?php
			foreach ($this->allStates as $literal => $name)
			{
		?>
			<option value="<?php echo $literal; ?>" <?php echo  ($this->aUser->state  == $literal) ? 'selected' : ''; ?>><?php echo $name; ?></option>
		<?php
			}
		?>
	</select>
</div>
	
<div>
	<label for="zip">ZIP / Postal code</label>
	<input type="text" name="zip" value="<?php echo $this->escape($this->aUser->zip); ?>" class="text" tabindex="7" />
</div>
	
<div class="clearit"><label for="phone">Phone</label> 
	<input	class="text" type="text" name="phone" id="phone" maxlength="255"
	value="<?php echo $this->escape($this->aUser->phone); ?>" tabindex="8" />
</div>

<div class="clearit"><label for="email">Email</label> 
	<input	class="text" type="text" name="email" id="email" maxlength="255"
	value="<?php echo $this->escape($this->aUser->email); ?>" tabindex="9" />
</div>


<div class="clearit"><label for="role">Role</label> 
	<select id="role" name="role" class="text"	tabindex="10">
	
		<option value="user" <?php echo 'user' == $this->escape($this->aUser->role) ? 'selected' : ''?> >User</option>
		<option value="administrator" <?php echo 'administrator' == $this->escape($this->aUser->role) ? 'selected' : ''?> >Administrator</option>

	</select>
</div>

<div class="clearit"><label for="status">Status</label> 
	<select id="status"	name="status" class="text"	tabindex="11">
	
		<option value="active" <?php echo 'active' == $this->escape($this->aUser->status) ? 'selected' : ''?> >active</option>
		<option value="not_approved" <?php echo 'not_approved' == $this->escape($this->aUser->status) ? 'selected' : ''?> >not_approved</option>
		<option value="suspend" <?php echo 'suspend' == $this->escape($this->aUser->status) ? 'selected' : ''?> >suspend</option>
	
	</select>
</div>


<div class="clearit"><label for="password">Password</label> 
	<input	class="text" type="text" name="password" id="password" maxlength="255"
	value="<?php echo $this->escape($this->aUser->password); ?>"
	tabindex="12" />
</div>
	
<div class="clearit"><label for="registration_datetime">Registration DateTime</label> 
	<input class="text" type="text" 	name="registration_datetime" id="registration_datetime" maxlength="255"
	value="<?php echo $this->escape($this->aUser->registration_datetime); ?>"
	tabindex="13" />
</div>

			<div>
				<label for="profession">Which describes you best?</label>
				<select name="profession" tabindex="12" >
						<option value="Student" <?php echo 'Student' == $this->aUser->profession ? 'selected="selected"' : ''?>>Student</option>
						<option value="TCU Faculty" <?php echo 'TCU Faculty' == $this->aUser->profession ? 'selected="selected"' : ''?>>TCU Faculty</option>
						<option value="Local Resident" <?php echo 'Local Resident' == $this->aUser->profession ? 'selected="selected"' : ''?>>Local Resident</option>
						<option value="Locally Employed" <?php echo 'Locally Employed' == $this->aUser->profession ? 'selected="selected"' : ''?>>Locally Employed</option>
						<option value="Visiting Fort Worth" <?php echo 'Visiting Fort Worth' == $this->aUser->profession ? 'selected="selected"' : ''?>>Visiting Fort Worth</option>
				</select>
			</div>



<div class="clearit"><input type="submit" value="Save"
	name="user_submit" id="user_submit" /></div>

</form>
</div>

</div>
